// 自动生成模板EvidenceTy
package flaud

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"gorm.io/datatypes"
	"time"
)

// 证据类型管理 结构体  EvidenceTy
type EvidenceTy struct {
	global.GVA_MODEL
	EvidenceName        *string        `json:"evidenceName" form:"evidenceName" gorm:"column:evidence_name;comment:证据的具体名称，如陈述笔录、证言笔录等;" binding:"required"`                                                                                                      //证据名称
	EvidenceDescription *string        `json:"evidenceDescription" form:"evidenceDescription" gorm:"column:evidence_description;comment:证据的详细描述信息;type:text;" binding:"required"`                                                                                 //描述
	EvidenceSource      *string        `json:"evidenceSource" form:"evidenceSource" gorm:"column:evidence_source;comment:证据来源，如被害人、证人等;" binding:"required"`                                                                                                      //来源
	EvidenceType        string         `json:"evidenceType" form:"evidenceType" gorm:"column:evidence_type;type:enum('陈述笔录','证言笔录','立案登记表','微信交易记录','银行交易明细','微信截图照片','电子数据检查笔录','抓获经过','发破案经过','认罪认罚具结书','户籍资料');comment:证据的类型，如陈述笔录、证言笔录等;" binding:"required"` //类型
	EvidenceDate        *time.Time     `json:"evidenceDate" form:"evidenceDate" gorm:"column:evidence_date;comment:证据的日期;" binding:"required"`                                                                                                                    //日期
	EvidenceAttachment  datatypes.JSON `json:"evidenceAttachment" form:"evidenceAttachment" gorm:"column:evidence_attachment;comment:证据的附件;" swaggertype:"array,object"`                                                                                          //附件
}

// TableName 证据类型管理 EvidenceTy自定义表名 evidence_type
func (EvidenceTy) TableName() string {
	return "evidence_type"
}
